Web Application Migration with Closure Reconstruction

نویسندگان

  • Jin-woo Kwon
  • Soo-Mook Moon
چکیده

Due to its high portability and simplicity, web application (app) based on HTML/JavaScript/CSS has been widely used for various smart-device platforms. To take advantage of its wide platform pool, a new idea called app migration has been proposed for the web platform. Web app migration is a framework to serialize a web app running on a device and restore it in another device to continue its execution. In JavaScript semantics, one of the language features that does not allow easy app migration is a closure. A JavaScript function can access variables defined in its outer function even if the execution of the outer function is terminated. It is allowed because the inner function is created as a closure such that it contains the outer function’s environment. This feature is widely used in web app development because it is the most common way to implement data encapsulation in web programming. Closures are not easy to serialize because environments can be shared by a number of closures and environments can be created in a nested way. In this paper, we propose a novel approach to fully serialize closures. We created mechanisms to extract information from a closure’s environment through the JavaScript engine and to serialize the information in a proper order so that the original relationship between closures and environments can be restored properly. We implemented our mechanism on the WebKit browser and successfully migrated Octane benchmarks and seven real web apps which heavily exploit closures. We also show that our mechanism works correctly even for some extreme, closure-heavy cases.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Nanotechnology for peripheral nerve regeneration

Peripheral nerve injuries (PNI) can lead to lifetime loss of function and disfigurement. Different methods such as conventional allograft procedures and using of biological tubes have problems for damaged peripheral nerves reconstruction. Designed scaffolds with natural and synthetic materials are now widely used in the reconstruction of damaged tissues. Utilization of absorbable and non-absorb...

متن کامل

Nanotechnology for peripheral nerve regeneration

Peripheral nerve injuries (PNI) can lead to lifetime loss of function and disfigurement. Different methods such as conventional allograft procedures and using of biological tubes have problems for damaged peripheral nerves reconstruction. Designed scaffolds with natural and synthetic materials are now widely used in the reconstruction of damaged tissues. Utilization of absorbable and non-absorb...

متن کامل

طراحی یادگیری مبتنی ‌بر وب با تأکید بر معرفت‌شناسی سازنده‌گرایی

  Current growth of philosophical and educational theories and computer technology has provided new forms of education in the world. Modern world has features such as communication, non-congruence, and flexibility. Therefore, web and other multimedia technologies are just information and application resources unless could provide learning field and content. The purpose of this study is reconstr...

متن کامل

Use of Platelet Rich Plasma and Hyaluronic Acid in the Treatment of Complications of Achilles Tendon Reconstruction

BACKGROUND The platelet-rich plasma (PRP) and hyaluronic acid (HA) constitute a system of tissue growth that can regenerate damaged tissue. This study was performed to evaluate the effect of PRP and HA in treatment of complications of Achilles tendon reconstruction. METHODS We selected ten patients affected by Achilles tendon injuries resulting from post-surgical complications subseque...

متن کامل

Migration from blocking to non-blocking web frameworks

Context. The problem of performance and scalability of web applications is challenged by most of the software companies. It is difficult to maintain the performance of a web application while the number of users is continuously increasing. The common solution for this problem is scalability. A web application can handle incoming and outgoing requests using blocking or non-blocking Input/Output ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2017